package com.xiaomi.back.service.advertisement.impl;

import com.xiaomi.back.dao.Advertisement.AdvertisementBackDao;
import com.xiaomi.back.service.advertisement.AdvertisementBackService;
import com.xiaomi.pojo.Advertisement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvertisementBackServiceImpl implements AdvertisementBackService {
    @Autowired
    private AdvertisementBackDao advertisementBackDao;

    @Override
    public List<Advertisement> selectAd() {
        return advertisementBackDao.selectAd();
    }

    @Override
    public List<Advertisement> OneAd(int type_id) {
        return advertisementBackDao.OneAd(type_id);
    }

    @Override
    public List<Advertisement> getADV(int advid) {
        return advertisementBackDao.getADV(advid);
    }

    @Override
    public int UpADV(String image, int id, int aid) {
        return advertisementBackDao.UpADV(image,id,aid);
    }


}
